package com.littlehu.service.impl;

import com.littlehu.mapper.UserMapper;
import com.littlehu.pojo.User;
import com.littlehu.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author littlehu
 * @data 2018/6/26 15:11
 * @Email 807115007@qq.com
 **/
@Service
public class UserServiceImpl implements UserService{

    @Autowired
    private UserMapper userMapper;

    @Override
    public int insertUser(User info) {
        return userMapper.insertUser(info);
    }

    @Override
    public List<User> selectAllUser() {
        return userMapper.selectAllUser();
    }

    @Override
    public User selectUserByPhone(String phone) {
        return userMapper.selectUserByPhone(phone);
    }
}
